<{include file="header.html"}>
<style>
table
{
	background-color:#cbcbcb;
	margin-top:20px;
	float:left;
}
th
{
	background-color:#eeeeee;
	font-weight:bold;
	font-size:18px;
}
tr
{
	background-color:#ffffff;
}
tr:hover
{
	background-color:#cbcbcb;
}

input[type="submit"],input[type="button"].submit
{
	margin-top:0px;
}
.showcontrolpanel input
{
	width:20px;
	display:inline;
}
</style>
<script src="js/jquery-1.5.2.min.js"  language="javascript" ></script>
<script language="javascript">
$(function(){
	$('.showcontrolpanel input[value=<{$show_setting}>]').attr('checked',true);
	$('.showcontrolpanel input').click(function(){
		document.location = '<{spUrl c=sliderimage a=setshowsetting}>&v='+$(this).val();
	});
});
</script>

<div style="float:left;">
<span><input type="button" class="submit" value="新增" onclick="document.location='<{spUrl c=sliderimage a=edit}>';return false;"/></span>
<span class="showcontrolpanel"><input type="checkbox" value="all"/>&nbsp;全部&nbsp;&nbsp;&nbsp;<input type="checkbox" value="Y"/>&nbsp;只显示&nbsp;&nbsp;&nbsp;<input type="checkbox" value="N"/>&nbsp;只不显示</span>
</div>
<table width="100%" cellspacing="2" cellpadding="5">
<tr>
	<th align="left">图片</th>
	<th align="left" >大小</th>
	<th align="left">排序</th>
	<th align="left">显示</th>
	<th align="left"></th>
</tr>
<{foreach item=sliderimage from=$slider_image_list}>
<tr>
	<td><img width="200" height="150" src="<{$sliderimage['img_path']}>"/></td>
	<td><{$sliderimage['size_info']}></td>
	<td><{$sliderimage['order']}></td>
	<td><{$sliderimage['active']}></td>
	<td align="center" width="200">
	<a href="<{spUrl c=sliderimage a=edit}>&uuid=<{$sliderimage['uuid']}>"><input type="button" class="submit" value="修改"/></a>
	&nbsp;&nbsp;
	<a href="<{spUrl c=sliderimage a=delete}>&uuid=<{$sliderimage['uuid']}>" onclick="return confirm('确定删除?');"><input type="button" class="submit" value="删除" onclick="deleteCatalog('<{$catalogrrow['uuid']}>');"/></a>
	</td>
</tr>
<{/foreach}>
<{include file="footer.html"}>